//
//  ZBMoBanFiveTieamCell.m
//  MoBan
//
//  Created by apple on 16/7/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanFiveTieamCell.h"
@interface ZBMoBanFiveTieamCell()
@property(nonatomic,strong)UIImageView *imageview;
@property(nonatomic,strong)UILabel *namelable;
@property(nonatomic,strong)UILabel *detaillabel;
@end
@implementation ZBMoBanFiveTieamCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self AddUI];
    }
    return self;
}
-(void)AddUI
{
    self.imageview = [[UIImageView alloc]init];
    self.imageview.backgroundColor = [UIColor redColor];
    self.imageview.image = [UIImage imageNamed:@"text.png"];
    [self addSubview:self.imageview];
    
    self.namelable = [[UILabel alloc]init];
    self.namelable.text = @"星际穿越";
    [self addSubview:self.namelable];
    
    self.detaillabel =[[UILabel alloc]init];
    self.detaillabel.font = [UIFont systemFontOfSize:10*Kscr];
    self.detaillabel.text = @"豆瓣评分 7.3";
    [self addSubview:self.detaillabel];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageview.frame = CGRectMake(5*Kscr, 0, self.width-10*Kscr, 60*Kscr);
    
    self.namelable.frame = CGRectMake(0, self.imageview.bottom+5*Kscr, self.width, 20*Kscr);
    
    self.detaillabel.frame = CGRectMake(0, self.namelable.bottom+5*Kscr, self.width, 20*Kscr);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
